<?php
  //all code for this project falls under the MIT license - http://www.opensource.org/licenses/mit-license

  $start_time = microtime(true);

  require_once '../includes/fpdf_bookmark.php';
  require_once './lib/support_library.php';
  
  $global_margin = array
  (
    'text_space' => 0,
    'position_y' => 0,
    'left'       => 0,
    'right'      => 0,
    'top'        => 0,
    'bottom'     => 0
  );
  
  
  
  $global_position_y = 0;
  $global_text_space = 0;
  
  $pdf=new PDF_Bookmark();
  $pdf->SetDisplayMode('fullpage');
  
  
  $pdf->SetAuthor('The Sega Genesis Community');
  $pdf->SetTitle('Sega Genesis Software Manual');
  
  
  $pdf->SetFont('Arial','',12);
  $pdf->SetDrawColor(255,0,0);
  $pdf->SetTextColor(255,0,0);

//------------------------------------------------------------[ Page 1 ]------------------------------------------------
  include './pages/gsm/gsm_001.php'; 
//------------------------------------------------------------[ Page 2 ]------------------------------------------------
  include './pages/gsm/gsm_002.php'; 
//------------------------------------------------------------[ Page 3 ]------------------------------------------------
  include './pages/gsm/gsm_003.php'; 
//------------------------------------------------------------[ Page 4 ]------------------------------------------------
  include './pages/gsm/gsm_004.php'; 
//------------------------------------------------------------[ Page 5 ]------------------------------------------------
  include './pages/gsm/gsm_005.php'; 
//------------------------------------------------------------[ Page 6 ]------------------------------------------------
  include './pages/gsm/gsm_006.php'; 
//------------------------------------------------------------[ Page 7 ]------------------------------------------------
  include './pages/gsm/gsm_007.php'; 
//------------------------------------------------------------[ Page 8 ]------------------------------------------------
  include './pages/gsm/gsm_008.php'; 
//------------------------------------------------------------[ Page 9 ]------------------------------------------------
  include './pages/gsm/gsm_009.php'; 
//------------------------------------------------------------[ Page 10 ]-----------------------------------------------
  include './pages/gsm/gsm_010.php'; 
//------------------------------------------------------------[ Page 11 ]-----------------------------------------------
  include './pages/gsm/gsm_011.php'; 
//------------------------------------------------------------[ Page 12 ]-----------------------------------------------
  include './pages/gsm/gsm_012.php'; 
//------------------------------------------------------------[ Page 13 ]-----------------------------------------------
  //add_reserved_page('retrocurious');
  include './pages/gsm/gsm_013.php'; 
//------------------------------------------------------------[ Page 14 ]-----------------------------------------------
  //add_reserved_page('retrocurious');
  include './pages/gsm/gsm_014.php'; 
//------------------------------------------------------------[ Page 15 ]-----------------------------------------------
  //add_reserved_page('retrocurious');
  include './pages/gsm/gsm_015.php'; 
//------------------------------------------------------------[ Page 16 ]-----------------------------------------------
  //add_reserved_page('retrocurious',0,2);
  include './pages/gsm/gsm_016.php'; 
//------------------------------------------------------------[ Page 17 ]-----------------------------------------------
  include './pages/gsm/gsm_017.php'; 
//------------------------------------------------------------[ Page 18 ]-----------------------------------------------
  include './pages/gsm/gsm_018.php'; 
//------------------------------------------------------------[ Page 19 ]-----------------------------------------------
  include './pages/gsm/gsm_019.php'; 
//------------------------------------------------------------[ Page 20 ]-----------------------------------------------
  include './pages/gsm/gsm_020.php'; 
//------------------------------------------------------------[ Page 21 ]-----------------------------------------------
  include './pages/gsm/gsm_021.php'; 
//------------------------------------------------------------[ Page 22 ]-----------------------------------------------
  //add_reserved_page('archer');
  include './pages/gsm/gsm_022.php'; 
//------------------------------------------------------------[ Page 23 ]-----------------------------------------------
  //add_reserved_page('archer');
  include './pages/gsm/gsm_023.php'; 
//------------------------------------------------------------[ Page 24 ]-----------------------------------------------
  //add_reserved_page('archer');
  include './pages/gsm/gsm_024.php'; 
//------------------------------------------------------------[ Page 25 ]-----------------------------------------------
  add_reserved_page('archer');
  //include './pages/gsm/gsm_025.php'; 
//------------------------------------------------------------[ Page 26 ]-----------------------------------------------
  add_reserved_page('retrocurious');
  //include './pages/gsm/gsm_026.php'; 
//------------------------------------------------------------[ Page 27 ]-----------------------------------------------
  add_reserved_page('retrocurious');
  //include './pages/gsm/gsm_027.php'; 
//------------------------------------------------------------[ Page 28 ]-----------------------------------------------
  add_reserved_page('retrocurious');
  //include './pages/gsm/gsm_028.php'; 
//------------------------------------------------------------[ Page 29 ]-----------------------------------------------
  add_reserved_page('retrocurious');
  //include './pages/gsm/gsm_029.php'; 
//------------------------------------------------------------[ Page 30 ]-----------------------------------------------
  add_reserved_page('retrocurious');
  //include './pages/gsm/gsm_030.php'; 


  //Add empty page to test bookmark jumps
  $pdf->AddPage();
   
   
  //If you want to compile with apache, change the F (file) into I (inline) 
  $pdf->Output('genesis.pdf','F');


  //If you compile in apache, comment these lines
  $end_time = microtime(true);
  
  $compile_time = $end_time - $start_time ;
  
  //echo 'Genesis Software Manual PDF Generator: 0.2 (Created by The Sega Genesis Community'."\n\n";
  echo "\n".'PDF generated in: '.round($compile_time,4)." Seconds\n\n";
  
  
// END OF DOCUMENT -----------------------------------------------------------------------------------------------------
 
 
  
?>
